package com.xhy.major.service;

import com.xhy.major.mapper.MajorMapper;
import com.xhy.major.pojo.Major;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MajorServicelmpl implements MajorService {
    @Autowired
    MajorMapper majorMapper;
    @Override
    public List<Major> selectMajor() {
        return majorMapper.selectMajor();
    }

    @Override
    public int addMajor(Major major) {
        return majorMapper.addMajor(major);
    }

    @Override
    public int updateMajor(Major major) {
        return majorMapper.updateMajor(major);
    }

    @Override
    public int deleteMajor(int id) {
        return majorMapper.deleteMajor(id);
    }
}

